#ifndef EDITANIMATIONWIDGET_H
#define EDITANIMATIONWIDGET_H

#include <QWidget>

namespace Ui {
class EditAnimationWidget;
}

class Animation;

class EditAnimationWidget : public QWidget
{
    Q_OBJECT
    
public:
    explicit EditAnimationWidget(QWidget *parent = 0);
    ~EditAnimationWidget();
    
    QWidget* previewWidget() const;
    QWidget* animationControl() const;

    void getParams(int& xPattern, int& yPattern, int& numFrames, bool &bLoop, int& speed);
private:
    Ui::EditAnimationWidget *ui;
signals:
    void parametersChanged();

    void startStopAnimation();
    void rewind();
    void goToEnd();
    void stepBackward();
    void stepForward();
private slots:
    void patternChanged();
public slots:
    void resetParameters(QPointer<Animation> anim);
};

#endif // EDITANIMATIONWIDGET_H
